package com.xgsm.Fmmall.controller;

import com.auth0.jwt.interfaces.Claim;
import com.xgsm.Fmmall.entity.Users;
import com.xgsm.Fmmall.vo.ResultVo;
import io.jsonwebtoken.*;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.spring.web.json.Json;

import javax.servlet.http.HttpServletRequest;
import java.util.LinkedHashMap;

@RestController
@CrossOrigin
@Api(value = "购物车", tags = "购物车管理")
@RequestMapping("/shopcart")
public class ShopCartController {
    @RequestMapping("/list")
    public ResultVo shopcartList(HttpServletRequest request) {
        System.out.println(request.getHeader("token"));
        return new ResultVo(200, "验证成功", null);
    }
}
